
<div class="page">
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="demo/navigation/navigation_add.html" target="dialog" rel="entity_add" width="520" height="460"><span>添加</span></a></li>
				<li><a class="delete" url="/demo/navigation/{navigation_id}" area="tbody.list" callback="reload" type="delete" target="navTabTodo" title="确定要删除选中的数据吗？" warn="请选择需要删除的数据项！"><span>删除</span></a></li>
				<!-- 	
				<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab" warn="请选择一个用户"><span>修改</span></a></li>
				<li class="line">line</li>
				<li><a class="icon" href="#"><span>导入EXCEL</span></a></li>
				 -->
			</ul>
		</div>
		
			<table class="list" width="98%" layoutH="54">
				<thead>
					<tr>
						<th width="3%"><input type="checkbox" name="objectId" value="navigation_id"/></th>
						<th width="3%">id</th>
						<th width="12%">导航名称</th>
						<th width="30%">容器</th>
						<th width="30%">模板</th>
						<th>描述</th>
						<th width="6%">操作</th>
					</tr>
				</thead>
				<tbody style="display: none;" class="templet">
					<tr navigation="${navigation_id}">
						<td><input type="checkbox" name="navigation_id" value="${navigation_id}"/></td>
						<td>${navigation_id}</td>
						<td name="title" title="${title}">${title}</td>
						<td name="container" title="${container}">${container}</td>
						<td name="templet" title="${templet}">${templet}</td>
						<td name="description" title="${desciption}">${description}</td>
						<td>
							<a class="edit" href="javascript:void(0)" url="demo/navigation/navigation_update.html?navigation_id=${navigation_id}" target="dialog" warn="非法参数（${navigation_id}）" width="750" height="600" callback="updateNavigationItem"><span>修改</span></a>
						</td>
					</tr>
				</tbody>
				<tbody class="list" action="/demo/navigation">
					
				</tbody>
			</table>
		
		<div class="panelBar">
			<div class="pages"></div>
			<div class="pagination" totalCount="0" numPerPage="20" pageNumShown="10" currentPage="1"></div>
		</div>
	
	</div>
</div>
<script>
function updateNavigationItem(item){
	var table=$("table.list");
	var navigation=$("tr[navigation="+item.navigation_id+"]",table);
	navigation.find("td[name=title]").text(item.title);
	navigation.find("td[name=container]").text(item.container);
	navigation.find("td[name=templet]").text(item.templet);
	navigation.find("td[name=demo]").text(item.demo);
	navigation.find("td[name=description]").text(item.description);
	alertMsg.correct("更新成功");
}
</script>